package io;

import java.io.*;

public class PWDemo {
    public static void main(String[] args) throws IOException {
        PrintWriter pw=new PrintWriter("pw.txt");
        pw.println("五五分福歌舞个哦佛为别烦我");
        pw.println("东方的雄风意华股份已恢复期货哦你回复回复");
        System.out.println("写出完毕");
        pw.close();






//        FileOutputStream fos=new FileOutputStream("pw.txt");
//        OutputStreamWriter osw=new OutputStreamWriter(fos);
//        BufferedWriter bw=new BufferedWriter(osw);//缓冲字符流
//        bw.write("五五分福歌舞个哦佛为别烦我");
//        bw.write("东方的雄风意华股份已恢复期货哦你回复回复");
//        System.out.println("写出完毕");
//        bw.close();
    }
}
